﻿using ZBJF.Warranty.Model.ViewModel.BaseQueryModel;

namespace ZBJF.Warranty.Model.ViewModel.BaseData
{
    /// <summary>
    /// 数据库表结构说明
    /// </summary>
    public class DBstructureDescriptionModel : BaseQueryParams
    {
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 表说明
        /// </summary>
        public string TableDesc { get; set; }
        /// <summary>
        /// 字段顺序
        /// </summary>
        public string FieldOrder { get; set; }
        /// <summary>
        /// 字段名
        /// </summary>
        public string FieldName { get; set; }
        /// <summary>
        /// 字段说明
        /// </summary>
        public string FieldDesc { get; set; }
        /// <summary>
        /// 是否标识字段
        /// </summary>
        public bool IsIdentity { get; set; }
        /// <summary>
        /// 是否是主键
        /// </summary>
        public bool IsPKKey { get; set; }
        /// <summary>
        /// 字段数据类型
        /// </summary>
        public string FieldType { get; set; }
        /// <summary>
        /// 字段占用字节数
        /// </summary>
        public string FieldBytes { get; set; }
        /// <summary>
        /// 字段长度
        /// </summary>
        public string FieldLength { get; set; }
        /// <summary>
        /// 是否允许为空
        /// </summary>
        public bool AllowEmpty { get; set; }
        /// <summary>
        /// 默认值
        /// </summary>
        public string DefaultValue { get; set; }
    }
}